package huzh.foundation.pool.threadpool;

/**
 *<p>title:JobClass</p>
 *<p>description:</p>
 * @since 2014-6-7
 * @author huzh
 * @version 1.0
 */
class JobClass implements Cloneable{
    /**job_obj*/
    private Object job_obj = null;
    /**para_obj*/
    private Object para_obj = null;
    /**originalJobClass*/
    private static JobClass originalJobClass = new JobClass();

    /**
     * @return
     */
    public static JobClass getInstance(){
        JobClass jobClass = null;
        try {
            jobClass = (JobClass)(JobClass)originalJobClass.clone();
        }catch (Exception ex) {
            System.out.println("Exception at JobClass clone: " + ex);
            ex.printStackTrace();
            jobClass = new JobClass();
        }
        return jobClass;
    }

    /**
     * @param job_obj
     */
    public void setJob_obj(Object job_obj) {
        this.job_obj = job_obj;
    }

    /**
     * @param para_obj
     */
    public void setPara_obj(Object para_obj) {
        this.para_obj = para_obj;
    }

    /**
     * @return
     */
    public Object getJob_obj() {
        return this.job_obj;
    }

    /**
     * @return
     */
    public Object getPara_obj() {
        return this.para_obj;
    }
}
